package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:36
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceResourceUIPageRelateBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate workspaceResourceUIPageRelate;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceResourceUIPageRelate);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.Id);
		
																																		
				
																																
				
																																
				
																								
				
																
		mappedDaoFields.put("workspaceResourceId",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
		
																														
				
																																
				
																																
				
																								
				
																				
		mappedDaoFields.put("uiPageId",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.UiPageId);
		
																										
				
																																
				
																																
				
																								
				
																								
		mappedDaoFields.put("lastGenCodeTime",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
		
																						
				
																																
				
																																
				
																								
				
																												
		mappedDaoFields.put("submitterId",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.SubmitterId);
		
																		
				
																																
				
																																
				
																								
				
																																
		mappedDaoFields.put("submitterName",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.SubmitterName);
		
														
				
																																
				
																																
				
																								
				
																																				
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.Status);
		
										
				
																																
				
																																
				
																								
				
																																								
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.Remarks);
		
						
				
																																
				
																																
				
																								
				
																																						
				
										
		mappedDaoFields.put("resourcePath",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.ResourcePath);
																								
				
																																
				
																								
				
																																						
				
																		
		mappedDaoFields.put("resourceType",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.ResourceType);
																
				
																																
				
																								
				
																																						
				
																										
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
								
				
																																
				
																								
				
																																						
				
																																
				
										
		mappedDaoFields.put("pageCode",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.PageCode);
																								
				
																								
				
																																						
				
																																
				
																		
		mappedDaoFields.put("pageName",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.PageName);
																
				
																								
				
																																						
				
																																
				
																										
		mappedDaoFields.put("uiDomainId",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.UiDomainId);
								
				
																								
				
																																						
				
																																
				
																																
				
																		
		mappedDaoFields.put("uiDomainCode",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
								
				
																																						
				
																																
				
																																
				
										
		mappedDaoFields.put("uiDomainName",com.ourteam.workspace.dao.IWorkspaceResourceUIPageRelateDAO.UiDomainName);
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceResourceUIPageRelateBean() {
		super();
	    		
		this.workspaceResourceUIPageRelate = new com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate();
                
	}
	
		
	public WorkspaceResourceUIPageRelateBean(com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate workspaceResourceUIPageRelate) {
		super();
	
		this.workspaceResourceUIPageRelate = workspaceResourceUIPageRelate;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate convertToWorkspaceResourceUIPageRelate(){
		return this.workspaceResourceUIPageRelate;
	}
	
	public com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate convertTo(){
		return this.workspaceResourceUIPageRelate;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceResourceUIPageRelate.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceResourceUIPageRelate.setId(id);
	}
		
																	
			
																	
			
																	
			
													
		
		
					
			
		
	/**
	 * Get workspaceResourceId
	 * 
	 * @return long
	 */
	public long getWorkspaceResourceId(){
		return (long) this.workspaceResourceUIPageRelate.getWorkspaceResourceId();
	}
	
	/**
	 * Set workspaceResourceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceResourceId(long workspaceResourceId){
		
		this.workspaceResourceUIPageRelate.setWorkspaceResourceId(workspaceResourceId);
	}
		
															
			
																	
			
																	
			
													
		
		
							
			
		
	/**
	 * Get uiPageId
	 * 
	 * @return long
	 */
	public long getUiPageId(){
		return (long) this.workspaceResourceUIPageRelate.getUiPageId();
	}
	
	/**
	 * Set uiPageId
	 * 
	 * @parameter long
	 */
	public void setUiPageId(long uiPageId){
		
		this.workspaceResourceUIPageRelate.setUiPageId(uiPageId);
	}
		
													
			
																	
			
																	
			
													
		
		
									
			
		
	/**
	 * Get lastGenCodeTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getLastGenCodeTime(){
		return (java.util.Date) this.workspaceResourceUIPageRelate.getLastGenCodeTime();
	}
	
	/**
	 * Set lastGenCodeTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setLastGenCodeTime(java.util.Date lastGenCodeTime){
		
		this.workspaceResourceUIPageRelate.setLastGenCodeTime(lastGenCodeTime);
	}
		
											
			
																	
			
																	
			
													
		
		
											
			
		
	/**
	 * Get submitterId
	 * 
	 * @return long
	 */
	public long getSubmitterId(){
		return (long) this.workspaceResourceUIPageRelate.getSubmitterId();
	}
	
	/**
	 * Set submitterId
	 * 
	 * @parameter long
	 */
	public void setSubmitterId(long submitterId){
		
		this.workspaceResourceUIPageRelate.setSubmitterId(submitterId);
	}
		
									
			
																	
			
																	
			
													
		
		
													
			
		
	/**
	 * Get submitterName
	 * 
	 * @return String
	 */
	public String getSubmitterName(){
		return (String) this.workspaceResourceUIPageRelate.getSubmitterName();
	}
	
	/**
	 * Set submitterName
	 * 
	 * @parameter String
	 */
	public void setSubmitterName(String submitterName){
		
		this.workspaceResourceUIPageRelate.setSubmitterName(submitterName);
	}
		
							
			
																	
			
																	
			
													
		
		
															
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceResourceUIPageRelate.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceResourceUIPageRelate.setStatus(status);
	}
		
					
			
																	
			
																	
			
													
		
		
																	
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceResourceUIPageRelate.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceResourceUIPageRelate.setRemarks(remarks);
	}
		
			
			
																	
			
																	
			
													
		
		
																		
			
					
			
		
	/**
	 * Get resourcePath
	 * 
	 * @return String
	 */
	public String getResourcePath(){
		
		return (String) this.workspaceResourceUIPageRelate.getResourcePath();
			
	}
	
													
			
																	
			
													
		
		
																		
			
									
			
		
	/**
	 * Get resourceType
	 * 
	 * @return String
	 */
	public String getResourceType(){
		
		return (String) this.workspaceResourceUIPageRelate.getResourceType();
			
	}
	
									
			
																	
			
													
		
		
																		
			
													
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		
		return (long) this.workspaceResourceUIPageRelate.getWorkspaceId();
			
	}
	
					
			
																	
			
													
		
		
																		
			
																	
			
					
			
		
	/**
	 * Get pageCode
	 * 
	 * @return String
	 */
	public String getPageCode(){
		
		return (String) this.workspaceResourceUIPageRelate.getPageCode();
			
	}
	
													
			
													
		
		
																		
			
																	
			
									
			
		
	/**
	 * Get pageName
	 * 
	 * @return String
	 */
	public String getPageName(){
		
		return (String) this.workspaceResourceUIPageRelate.getPageName();
			
	}
	
									
			
													
		
		
																		
			
																	
			
													
			
		
	/**
	 * Get uiDomainId
	 * 
	 * @return long
	 */
	public long getUiDomainId(){
		
		return (long) this.workspaceResourceUIPageRelate.getUiDomainId();
			
	}
	
					
			
													
		
		
																		
			
																	
			
																	
			
									
			
		
	/**
	 * Get uiDomainCode
	 * 
	 * @return String
	 */
	public String getUiDomainCode(){
		
		return (String) this.workspaceResourceUIPageRelate.getUiDomainCode();
			
	}
	
					
		
		
																		
			
																	
			
																	
			
					
			
		
	/**
	 * Get uiDomainName
	 * 
	 * @return String
	 */
	public String getUiDomainName(){
		
		return (String) this.workspaceResourceUIPageRelate.getUiDomainName();
			
	}
	
									
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceResourceUIPageRelateBean) == false) {
            return false;
        } // end if

        WorkspaceResourceUIPageRelateBean other = (WorkspaceResourceUIPageRelateBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate tempWorkspaceResourceUIPageRelate = other.convertToWorkspaceResourceUIPageRelate();
        
        if(tempWorkspaceResourceUIPageRelate == null || this.workspaceResourceUIPageRelate == null){
        	isEqual = false;
        }
        else if(tempWorkspaceResourceUIPageRelate == this.workspaceResourceUIPageRelate || tempWorkspaceResourceUIPageRelate.equals(this.workspaceResourceUIPageRelate) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceResourceUIPageRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate[] aWorkspaceResourceUIPageRelates){
		
		return toArray(aWorkspaceResourceUIPageRelates,null);
	}
	
	public static WorkspaceResourceUIPageRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceResourceUIPageRelate[] aWorkspaceResourceUIPageRelates , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceResourceUIPageRelates)){
		 	return new WorkspaceResourceUIPageRelateBean[0];
		 }
		 
		 int length = aWorkspaceResourceUIPageRelates.length;
		 
		 WorkspaceResourceUIPageRelateBean[] beans = new WorkspaceResourceUIPageRelateBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceResourceUIPageRelateBean(aWorkspaceResourceUIPageRelates[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceResourceUIPageRelates[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}